package com.zhejiangzhengyuan.municipal_common.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhejiangzhengyuan.municipal_common.entity.Problems;
import com.zhejiangzhengyuan.municipal_common.entity.vo.ProblemsVo;
import com.zhejiangzhengyuan.municipal_common.response.ResponseVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * 服务类
 *
 * @author linju
 * @since 2019-12-12
 */
public interface ProblemsService extends IService<Problems> {

  /**
   * 存储问题点
   *
   * @param problems 问题点实体类
   * @return response封装
   */
  public ResponseVo saveProblems(Problems problems);
  /**
   * 获取单个问题点
   *
   * @param id 问题点Id
   * @return response封装
   */
  public ResponseVo getVoById(Long id);

  /**
   * 修改问题点
   *
   * @param problems 问题点实体类
   * @return response封装
   */
  public ResponseVo updateProblems(Problems problems, String linkList);

  ResponseVo removeProblems(Long problemsId);

  Page<ProblemsVo> selectVoPage(
      Page<ProblemsVo> voPage,
      String area,
      String projectNum,
      String defectItemCode,
      String problemsCode,
      String startTimestamp,
      String endTimestamp);

  ResponseVo selectProblemsCharts(int month);

  ResponseVo selectRectifySewage(int month);

  public ResponseVo insertProblemsFile(
      Long problemsId, MultipartFile beforeFile, MultipartFile afterFile);

  public ResponseVo removeProblemsByIds(List<Long> ids);
}
